package day1;

import java.util.Arrays;

public class A1 {
    public static void main(String[] args) {
        Integer[] i ={1,2,3,4,5,6,7};
        String[] a= {"a","c","b","3","2","D","1"};
        String[] a1 = {"1","3","2"};
        Arrays.sort(a);
        System.out.println(Arrays.toString(a));
        System.out.println(Arrays.asList(a));
        Arrays.sort(i,(x, y)-> {
            if (x < y) {
                return 1;
            } else if (x > y) {
                return -1;
            } else {
                return 0;
            }
        });
        System.out.println(Arrays.toString(i));
        System.out.println("a".compareTo("v"));
        System.out.println("1".compareTo("a"));
        int x=10;
        if(x>1){
            System.out.println("1");
        }else if(x==10){
            System.out.println(2);
        }
}}
interface j1{
    void S(String i);
}
class A2{
    public void  S1(j1 j){

        j.S("1");
    }
}